//banner接口
import request from '@/utils/request'

//获取bannerAPi
export const getBannerApi = () => {
    return request({
        url: '/appuser/banner/list',
        method: 'get',
    })
}

//修改公告APi
export const editBannerApi = (data) => {
    return request({
        url: '/appuser/banner/edit',
        method: 'post',
        data,
    })
}

//新增公告APi
export const addBannerApi = (data) => {
    return request({
        url: '/appuser/banner/add',
        method: 'post',
        data,
    })
}

//删除公告APi
export const delBannerApi = (id) => {
    return request({
        url: `/appuser/banner/${id}`,
        method: 'delete',
    })
}